﻿using System;
using System.Collections.Generic;
using Interfaces.FilterModels;

namespace BusinessLogic.Models.Filter
{
    public class NewsFilterBase<TFeedType,TFilterModel> : IFilterModel<TFilterModel>
        where TFilterModel : INewsFilterModel
    {
        protected LinkedList<Func<TFeedType, bool>> FiltersCollection { get; private set; }

        public NewsFilterBase(LinkedList<Func<TFeedType, bool>> filtersCollection, TFilterModel filterModel)
        {
            FilterModel = filterModel;
            FiltersCollection = filtersCollection;
        }

        public TFilterModel FilterModel { get; set; }
    }
}
